<?php

namespace app\model;

use think\Model;

class Admin extends BaseModel
{

    public static function getInfoByUsername($username)
    {
        $admin = self::where('username', '=', $username)
            ->find();

        return $admin;
    }
}
